package com.markyao.dao.mapper;

import com.markyao.dao.pojo.Cart;
import com.markyao.vo.CartVo;
import com.markyao.vo.parmas.CartParmas;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CartMapper {

    void insertCart(CartParmas cartParmas);

    List<Integer> findByUid(Integer uid);

    List<CartVo>findByCids(@Param("cidList") List<Integer> cidList);

    int findNumByCid(Integer cid);


    void addNum(@Param("cid") Integer cid,@Param("num") int num);
}
